package com.easyOrder.service.enums;

/**
 * Created by liutao on 2017/7/20.
 */
public enum SeqType {
    Sequence("_sequence", "__sequence", ""),
    Appid("ba_appid", "ba_appid", ""),
    AppidAuthority("ba_appidauthority", "ba_appid_authority", ""),
    ApplicationVersion("ba_applicationversion", "ba_application_version", ""),
    Area("ba_area", "ba_area", ""),
    BankAccount("ba_bankaccount", "ba_bank_account", ""),
    BatchJob("ba_batchjob", "ba_batch_job", ""),
    BatchJobRecord("ba_batchjobrecord", "ba_batch_job_record", ""),
    Branch("ba_branch", "ba_branch", ""),
    Department("ba_department", "ba_department", ""),
    Dictionary("ba_dictionary", "ba_dictionary", ""),
    DictionaryEntry("ba_dictionaryentry", "ba_dictionary_entry", ""),
    DocumentChangeRecord("ba_documentchangerecord", "ba_document_change_record", ""),
    DocumentPrint("ba_documentprint", "ba_document_print", ""),
    Employee("ba_employee", "ba_employee", ""),
    File("ba_file", "ba_file", ""),
    Flow("ba_flow", "ba_flow", ""),
    FlowNode("ba_flownode", "ba_flow_node", ""),
    FlowTpl("ba_flowtpl", "ba_flow_tpl", ""),
    FlowTplNode("ba_flowtplnode", "ba_flow_tpl_node", ""),
    FlowTplNodeRole("ba_flowtplnoderole", "ba_flow_tpl_node_role", ""),
    Function("ba_function", "ba_function", ""),
    FunctionMenu("ba_functionmenu", "ba_function_menu", ""),
    FunctionUser("ba_function_user", "ba_function_user", ""),
    FunctionEmployee("ba_function_employee", "ba_function_employee", ""),
    IdentityCard("ba_identitycard", "ba_identity_card", ""),
    License("ba_license", "ba_license", ""),
    LoginLogs("ba_loginlogs", "ba_login_logs", ""),
    Menu("ba_menu", "ba_menu", ""),
    Message("ba_message", "ba_message", ""),
    MessageRecipient("ba_messagerecipient", "ba_message_recipient", ""),
    MobileValidCode("ba_mobilevalidcode", "ba_mobile_valid_code", ""),
    Parameter("ba_parameter", "ba_parameter", ""),
    Reason("ba_reason", "ba_reason", ""),
    Role("ba_role", "ba_role", ""),
    RoleResource("ba_roleresource", "ba_role_resource", ""),
    RoleUser("ba_roleuser", "ba_role_user", ""),
    Tenant("ba_tenant", "ba_tenant", ""),
    TenantReason("ba_tenantreason", "ba_tenant_reason", ""),
    User("ba_user", "ba_user", ""),
    WechartBind("ba_wechartbind", "ba_wechart_bind", ""),
    AcceptanceIndex("in_acceptanceindex", "in_acceptance_index", ""),
    AcceptanceIndexCategory("in_acceptanceindexcategory", "in_acceptance_index_category", ""),
    AcceptanceIndexCategoryDetail("in_acceptanceindexcategorydetail", "in_acceptance_index_category_detail", ""),
    Consume("in_consume", "in_consume", ""),
    ConsumeDetail("in_consumedetail", "in_consume_detail", ""),
    Material("in_material", "in_material", ""),
    MaterialClass("in_materialclass", "in_material_class", ""),
    MaterialUnit("in_materialunit", "in_material_unit", ""),
    PublicMaterial("in_publicmaterial", "in_public_material", ""),
    PublicMaterialAttribute("in_publicmaterialattribute", "in_public_material_attribute", ""),
    PublicMaterialAttributeValue("in_publicmaterialattributevalue", "in_public_material_attribute_value", ""),
    PublicMaterialClass("in_publicmaterialclass", "in_public_material_class", ""),
    PublicMaterialUnit("in_publicmaterialunit", "in_public_material_unit", ""),
    Stock("in_stock", "in_stock", ""),
    StockCount("in_stockcount", "in_stock_count", ""),
    StockCountDetail("in_stockcountdetail", "in_stock_count_detail", ""),
    StockCountPhoto("in_stockcountphoto", "in_stock_count_photo", ""),
    StockDetail("in_stockdetail", "in_stock_detail", ""),
    StockTransfer("in_stocktransfer", "in_stock_transfer", ""),
    StockTransferDetail("in_stocktransferdetail", "in_stock_transfer_detail", ""),
    StockUp("in_stockup", "in_stock_up", ""),
    TenantUnit("in_tenantunit", "in_tenant_unit", ""),
    Unit("in_unit", "in_unit", ""),
    Behavior("lo_behavior", "lo_behavior", ""),
    Operation("lo_operation", "lo_operation", ""),
    Trace("lo_trace", "lo_trace", ""),
    DocumentException("pu_documentexception", "pu_document_exception", ""),
    DocumentExceptionReason("pu_documentexceptionreason", "pu_document_exception_reason", ""),
    DocumentExceptionRecord("pu_documentexceptionrecord", "pu_document_exception_record", ""),
    PurchaseOrder("pu_order", "pu_order", "CG"),
    PurchaseOrderdetail("pu_orderdetail", "pu_orderdetail", ""),
    PurchasePrice("pu_price", "pu_price", ""),
    PurchasePricedetail("pu_pricedetail", "pu_pricedetail", ""),
    PurchasePriceNegotiate("pu_price_negotiate", "pu_price_negotiate", ""),
    PurchasePriceNegotiateDetail("pu_price_negotiate_detail", "pu_price_negotiate_detail", ""),
    PurchasePriceBranch("pu_price_branch", "pu_price_branch", ""),
    Receipt("pu_receipt", "pu_receipt", "SH"),
    ReceiptAcceptance("pu_receiptacceptance", "pu_receipt_acceptance", ""),
    ReceiptDetail("pu_receiptdetail", "pu_receipt_detail", ""),
    ReceiptPhoto("pu_receiptphoto", "pu_receipt_photo", ""),
    ReceiptWeigh("pu_receiptweigh", "pu_receipt_weigh", ""),
    PurchaseReconciliation("pu_reconciliation", "pu_reconciliation", ""),
    PurchaseReconciliationDetail("pu_reconciliationdetail", "pu_reconciliation_detail", ""),
    Requisition("pu_requisition", "pu_requisition", "SG"),
    RequisitionDepartment("pu_requisitiondepartment", "pu_requisition_department", ""),
    RequisitionDetail("pu_requisitiondetail", "pu_requisition_detail", ""),
    RequisitionVerify("pu_requisition_verify", "pu_requisition_verify", ""),
    PurchaseReturn("pu_return", "pu_return", "CGTH"),
    PurchaseReturnDetail("pu_returndetail", "pu_return_detail", ""),
    PurchaseReturnPhoto("pu_returnphoto", "pu_return_photo", ""),
    PurchaseReturnWeigh("pu_returnweigh", "pu_return_weigh", ""),
    Supplier("pu_supplier", "pu_supplier", ""),
    SupplierBranch("pu_supplierbranch", "pu_supplier_branch", ""),
    SupplierMaterial("pu_suppliermaterial", "pu_supplier_material", ""),
    SalesCustomer("sa_customer", "sa_customer", ""),
    SalesCustomerBranch("sa_customerbranch", "sa_customer_branch", ""),
    SalesCustomerDepartment("sa_customerdepartment", "sa_customer_department", ""),
    SalesCustomerMaterial("sa_customermaterial", "sa_customer_material", ""),
    SalesDelivery("sa_delivery", "sa_delivery", ""),
    SalesDeliveryDetail("sa_deliverydetail", "sa_delivery_detail", ""),
    SalesOrder("sa_order", "sa_order", "XS"),
    SalesOrderCollet("sa_ordercollet", "sa_order_collet", ""),
    SalesOrderDetail("sa_orderdetail", "sa_order_detail", ""),
    SalesOrderPush("sa_orderpush", "sa_order_push", ""),
    SalesPrice("sa_price", "sa_price", ""),
    SalesPriceDetail("sa_pricedetail", "sa_price_detail", ""),
    SalesReconciliation("sa_reconciliation", "sa_reconciliation", ""),
    SalesReconciliationDetail("sa_reconciliationdetail", "sa_reconciliation_detail", ""),
    SalesReturn("sa_return", "sa_return", "XSTH"),
    SalesReturnDetail("sa_returndetail", "sa_return_detail", ""),
    SalesReturnPhoto("sa_returnphoto", "sa_return_photo", ""),

    CalculateResult("ba_calculate_result", "ba_calculate_result", ""),
    PopularMaterial("in_popular_material", "in_popular_material", ""),
    WeChatBind("ba_wechat_bind", "ba_wechat_bind", ""),
    StandardMaterialClass("ba_standardmaterialclass", "ba_standard_material_class", ""),
    StandardMaterial("ba_standardmaterial", "ba_standard_material", ""),
    StandardMaterialCode("ba_standardmaterialcode", "ba_standard_material", ""),
    StandardMaterialClassCode("ba_standardmaterialclasscode", "ba_standard_material_class", ""),
    StandardMaterialNorm("ba_standardmaterialnorm", "ba_standard_material_norm", ""),
    StandardMaterialOtherName("ba_standardmaterialothername", "ba_standard_material_other_name", ""),

    Distribution("sa_distribution", "sa_distribution", ""),
    DistributionDetail("sa_distributiondetail", "sa_distribution_detail", ""),
    StockBook("ba_stockbook", "ba_stockbook", ""),
    StockBatchRecord("ba_stockbatchrecord", "ba_stockbatchrecord", ""),
    StockInventory("ba_stockinventory", "ba_stockinventory", ""),
    StockBookBatch("ba_stockbookbatch", "ba_stockbookbatch", ""),
    ScaleDevice("ba_scale_device", "ba_scale_device", ""),
    MessageTemplate("ba_messagetemplate","ba_messagetemplate","");



    private String value;
    private String tableName;
    private String codePrefix;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getCodePrefix() {
        return codePrefix;
    }

    public void setCodePrefix(String codePrefix) {
        this.codePrefix = codePrefix;
    }

    private SeqType(String value, String tableName, String codePrefix) {
        this.value = value;
        this.tableName = tableName;
        this.codePrefix = codePrefix;
    }
}

